package com.supermap;

import com.supermap.business.cloud.push.MyWebSocket;
import com.supermap.dataservice.redis.JedisComponent;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicLong;



/**
 * Spring Boot入口类
 * SpringBootApplication = Configuration+EnableAutoConfiguration+ComponentScan
 * 注意要加上@ServletComponentScan注解，否则Servlet无法生效  for druid
 * @author xiaolu
 */
@SpringBootApplication
@ServletComponentScan
@EnableScheduling
public class BusinessPlatformApplication {



//    public static void main(String[] args) {
//        SpringApplication application = new SpringApplication(BusinessPlatformApplication.class);
//        application.setBannerMode(Banner.Mode.CONSOLE);
//        application.run(args);
//    }
public static void main(String[] args) {
     ConfigurableApplicationContext applicationContext = SpringApplication.run(BusinessPlatformApplication.class,args);
     MyWebSocket.setApplicationContext(applicationContext);
}

}
